package com.dhcc.sds.ws.dhcmessage;

public class DHCMessageServiceSoapProxy implements DHCMessageServiceSoap {
  private String _endpoint = null;
  private DHCMessageServiceSoap dHCMessageServiceSoap = null;
  
  public DHCMessageServiceSoapProxy() {
    _initDHCMessageServiceSoapProxy();
  }
  
  public DHCMessageServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initDHCMessageServiceSoapProxy();
  }
  
  private void _initDHCMessageServiceSoapProxy() {
    try {
      dHCMessageServiceSoap = (new DHCMessageServiceLocator()).getDHCMessageServiceSoap();
      if (dHCMessageServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)dHCMessageServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)dHCMessageServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (dHCMessageServiceSoap != null)
      ((javax.xml.rpc.Stub)dHCMessageServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public DHCMessageServiceSoap getDHCMessageServiceSoap() {
    if (dHCMessageServiceSoap == null)
      _initDHCMessageServiceSoapProxy();
    return dHCMessageServiceSoap;
  }
  
  public String exec(String contentId, String userCode) throws java.rmi.RemoteException{
    if (dHCMessageServiceSoap == null)
      _initDHCMessageServiceSoapProxy();
    return dHCMessageServiceSoap.exec(contentId, userCode);
  }
  
  public String execAll(String msgDetailsId, String execUserDr, String execDate, String execTime) throws java.rmi.RemoteException{
    if (dHCMessageServiceSoap == null)
      _initDHCMessageServiceSoapProxy();
    return dHCMessageServiceSoap.execAll(msgDetailsId, execUserDr, execDate, execTime);
  }
  
  public String find(String start, String count) throws java.rmi.RemoteException{
    if (dHCMessageServiceSoap == null)
      _initDHCMessageServiceSoapProxy();
    return dHCMessageServiceSoap.find(start, count);
  }
  
  public String findByUser(String userId, String start, String count) throws java.rmi.RemoteException{
    if (dHCMessageServiceSoap == null)
      _initDHCMessageServiceSoapProxy();
    return dHCMessageServiceSoap.findByUser(userId, start, count);
  }
  
  public String getCountAndBizIds(String userCode, String actionCodes) throws java.rmi.RemoteException{
    if (dHCMessageServiceSoap == null)
      _initDHCMessageServiceSoapProxy();
    return dHCMessageServiceSoap.getCountAndBizIds(userCode, actionCodes);
  }
  
  public String read(String contentId, String userCode) throws java.rmi.RemoteException{
    if (dHCMessageServiceSoap == null)
      _initDHCMessageServiceSoapProxy();
    return dHCMessageServiceSoap.read(contentId, userCode);
  }
  
  public String readOrExec(String model, String contentId, String userCode) throws java.rmi.RemoteException{
    if (dHCMessageServiceSoap == null)
      _initDHCMessageServiceSoapProxy();
    return dHCMessageServiceSoap.readOrExec(model, contentId, userCode);
  }
  
  public String send(String context, String actionTypeCode, String fromUserRowId, String episodeId, String ordItemId, String toUserRowId, String otherInfoJson, String locId, String effectiveDays, String createLoc) throws java.rmi.RemoteException{
    if (dHCMessageServiceSoap == null)
      _initDHCMessageServiceSoapProxy();
    return dHCMessageServiceSoap.send(context, actionTypeCode, fromUserRowId, episodeId, ordItemId, toUserRowId, otherInfoJson, locId, effectiveDays, createLoc);
  }
  
  
}